package com.smm.web.mtower.domain;

import java.io.Serializable;

/**
 * Created by zhenghao on 2016/5/25.
 *
 */
public class JsonReturn implements Serializable {


    public static final String Code_Success="1";

    public static final String Code_Faild="0";

    private String code="1";

    private String msg;

    private Object Data;


    public JsonReturn(boolean code, String msg, Object data) {

        if(code){
            this.setCode(Code_Success);
        }else{
            this.setCode(Code_Faild);
        }

        this.msg = msg;
        Data = data;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return Data;
    }

    public void setData(Object data) {
        Data = data;
    }
}
